@extends('layouts.home.layout')

@section('content')

    @include('layouts.home._nav')

    @include('layouts.home._banner')


    <div class="announcement">
        <div class="main">
            <div class="gonggao"><img src="/home/images/gonggao_03.png"/>
                <p>官方数据统计显示：</p></div>
            <div class="picMarquee-top" style="float:left;margin-left:50px;">
                <div class="bd">
                    <div class="tempWrap">
                        <ul class="picList">
                            <li>
                                <p class="announcement_p">3分钟前　王**　150****7712　成功批款5万</p>
                            </li>
                            <li>
                                <p class="announcement_p">5分钟前　陈**　150****7712　成功批款10万</p>
                            </li>
                            <li>
                                <p class="announcement_p">7分钟前　张**　159****8928　成功批款8万</p>
                            </li>
                            <li>
                                <p class="announcement_p">10分钟前　路**　132****6409　成功批款25万</p>
                            </li>
                            <li>
                                <p class="announcement_p">12分钟前　秦**　185****9147　成功批款3万</p>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>

            <script type="text/javascript">
                jQuery(".picMarquee-top").slide({
                    mainCell: ".bd ul",
                    autoPlay: true,
                    effect: "leftMarquee",
                    vis: 2,
                    interTime: 20,
                    trigger: "click"
                });
            </script>
        </div>
    </div><!--announcement-->

    <ul class="dkbox">
        <div class="main">
            <li>
                <dl>
                    <dt><img src="/home/images/dkicon_03.png" width="89" height="88"/></dt>
                    <dd><h1>极 速</h1>
                        <p>最快当天放款</p>
                        <p>解决燃眉之急</p></dd>
                </dl>
            </li>
            <li>
                <dl>
                    <dt><img src="/home/images/dkicon_05.png" width="89" height="88"/></dt>
                    <dd><h1>低 息</h1>
                        <p>佣金收取合理</p>
                        <p>节省融资成本</p></dd>
                </dl>
            </li>
            <li>
                <dl>
                    <dt><img src="/home/images/dkicon_07.png" width="89" height="88"/></dt>
                    <dd><h1>专 业</h1>
                        <p>专业贷款顾问</p>
                        <p>助您成功贷款</p></dd>
                </dl>
            </li>
            <li style="border:none;">
                <dl>
                    <dt><img src="/home/images/dkicon_09.png" width="89" height="88"/></dt>
                    <dd><h1>保 密</h1>
                        <p>保证信息安全</p>
                        <p>拒绝资料倒卖</p></dd>
                </dl>
            </li>
        </div>
    </ul><!--dkbox-->

    <div class="cptitle main">
        <img src="/home/images/hot_03.png" class="hot"/>
        <div class="jtilt"><p>热门产品</p></div>
    </div><!--cptitle-->

    <ul class="rmul main">
        @foreach($indexProduct as $key=>$val)
            <li>
                <div class="rmtop"><img src="/home{{$val->imgurl}}"/>
                    <p class="valname">{{$val->name}}</p></div>
                <p class="rm_p">贷款月利率：{{$val->rate}}<br/>
                    贷款额度：{{$val->fee}}<br/>
                    贷款期限：{{$val->time}}</p>
                <button type="button" onclick="toApply({{$val->id}})">立即申请</button>
            </li>
        @endforeach
    </ul><!--rmul-->


@endsection
@section('js')
    <script>
        function toApply(id) {
            window.location.href = "{{url('apply/onestep')}}"+'?productid='+id;
        }
    </script>
@endsection